package com.bayihouse.model.excel.publicClass.father;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    protected Long id;

    /**
     * 是否插入数据库中，1表示已经插入，0表示没有插入
     */
    @TableField(exist = false)
    protected Integer status = 0;


    protected String name;


    public boolean isNotInsert() {
        if (status == null || status == 0) {
            return true;
        }
        return false;
    }

}
